package com.uprr.netcontrol.starmap.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MessagingChannelDTO extends BaseEntity implements Serializable {

  private static final long serialVersionUID = -7499506692438656141L;

  protected MessageChannelInstanceDTO instance;

  protected List<MonitorDTO> monitor;

  protected String type;

  protected String direction;

  protected String connectionFactories;

  protected String name;

  public final MessageChannelInstanceDTO getInstance() {
    return instance;
  }

  public final void setInstance(final MessageChannelInstanceDTO instance) {
    this.instance = instance;
  }

  public final List<MonitorDTO> getMonitor() {
    if (monitor == null) {
      monitor = new ArrayList<MonitorDTO>();
    }
    return monitor;
  }

  public final void setMonitor(final List<MonitorDTO> monitor) {
    this.monitor = monitor;
  }

  public final String getType() {
    return type;
  }

  public final void setType(final String type) {
    this.type = type;
  }

  public final String getDirection() {
    return direction;
  }

  public final void setDirection(final String direction) {
    this.direction = direction;
  }

  public final String getConnectionFactories() {
    return connectionFactories;
  }

  public final void setConnectionFactories(final String connectionFactories) {
    this.connectionFactories = connectionFactories;
  }

  public final String getName() {
    return name;
  }

  public final void setName(final String name) {
    this.name = name;
  }

}
